// 按需全局引入 vant组件
import Vue from 'vue'
import { RadioGroup, Radio, Switch, DatetimePicker, Loading, Progress, Lazyload, Overlay, Tab, Tabs, Popup, Divider, Icon, CellGroup, Badge, NavBar, Button, List, Cell, Tabbar, TabbarItem, Form, Field, IndexBar, IndexAnchor, Image as VanImage } from 'vant'

Vue.use(Button)
  .use(Cell)
  .use(List)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Form)
  .use(Field)
  .use(NavBar)
  .use(IndexBar)
  .use(IndexAnchor)
  .use(VanImage)
  .use(Badge)
  .use(CellGroup)
  .use(Icon)
  .use(Divider)
  .use(Popup)
  .use(Tab)
  .use(Tabs)
  .use(Overlay)
  .use(Lazyload, {
    lazyComponent: true,
    preLoad: 1.3
  })
  .use(Progress)
  .use(Loading)
  .use(DatetimePicker)
  .use(Switch)
  .use(RadioGroup)
  .use(Radio)

